package com.fangs.kotlin_banner.utils

object APPUtils {
    private const val MODE_ASK = 4
    private const val MODE_COMPAT = 5
    private const val CHECK_OP_NO_THROW = "checkOpNoThrow"
    private const val OP_POST_NOTIFICATION = "OP_POST_NOTIFICATION"
    private var lastClickTime: Long = 0

    /**
     * 是否为重复的快速点击
     */
    val isFastDuplicateClick: Boolean
        get() {
            val time = System.currentTimeMillis()
            val timeD = time - lastClickTime
            lastClickTime = time
            return 0 <= timeD && timeD <= 800
        }
}